<?php
                    class T_ENTITY_TEMPLATE extends MikronBaseObject
                    {
                        private static $description = 'Шаблон сущности';
                        private static $fields = Array('entityname'=>array ( 'name' => 'entityname', 'type' => 'varchar(32)', 'description' => 'Имя сущности', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'entitycondition'=>array ( 'name' => 'entitycondition', 'type' => 'varchar(255)', 'description' => 'Условие', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'template'=>array ( 'name' => 'template', 'type' => 'text', 'description' => 'Шаблон', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'formethod'=>array ( 'name' => 'formethod', 'type' => 'TEMPLATE_METHOD', 'description' => 'Имя метода', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_LOGRECORD extends MikronBaseObject
                    {
                        private static $description = 'Лог запись';
                        private static $fields = Array('category'=>array ( 'name' => 'category', 'type' => 'LOG_CATEGORY', 'description' => 'Категория', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'message'=>array ( 'name' => 'message', 'type' => 'text', 'description' => 'Сообщение', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_MENU extends MikronBaseObject
                    {
                        private static $description = 'Меню';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(64)', 'description' => 'Текст', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'link'=>array ( 'name' => 'link', 'type' => 'varchar(128)', 'description' => 'Ссылка', 'help' => 'Если пути, куда указывает ссылка не существует, то в качестве содержимого страницы будет выводиться текст из параметра «Содержимое страницы».', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'menugroup'=>array ( 'name' => 'menugroup', 'type' => 'MENU_GROUPS', 'description' => 'Группа', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'parentmenu'=>array ( 'name' => 'parentmenu', 'type' => 'T_MENU', 'description' => 'Вложено в меню', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'pagefor'=>array ( 'name' => 'pagefor', 'type' => 'PAGE_VISIBLE_FOR', 'description' => 'Кому видна страница', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'page'=>array ( 'name' => 'page', 'type' => 'html', 'description' => 'Содержимое страницы', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_VARIABLES extends MikronBaseObject
                    {
                        private static $description = 'Переменная';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(128)', 'description' => 'Заголовок', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'UIDX_CODE', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'type'=>array ( 'name' => 'type', 'type' => 'DATATYPE', 'description' => 'Тип значения', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'textvalue'=>array ( 'name' => 'textvalue', 'type' => 'text', 'description' => 'Значение', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_PAGESETTINGS extends MikronBaseObject
                    {
                        private static $description = 'Шаблон';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(64)', 'description' => 'Заголовок', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'address'=>array ( 'name' => 'address', 'type' => 'varchar(128)', 'description' => 'Адрес', 'help' => 'Адрес, либо маска адреса, страниц, для которых будет применяться данный шаблон.', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'html'=>array ( 'name' => 'html', 'type' => 'text', 'description' => 'HTML-Шаблон', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_COUNTER extends MikronBaseObject
                    {
                        private static $description = 'Счетчик посещений';
                        private static $fields = Array('forumusername'=>array ( 'name' => 'forumusername', 'type' => 'varchar(64)', 'description' => 'Имя пользователя', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'ip'=>array ( 'name' => 'ip', 'type' => 'varchar(32)', 'description' => 'IP-адрес', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'page'=>array ( 'name' => 'page', 'type' => 'varchar(255)', 'description' => 'Посещенная страница', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'referer'=>array ( 'name' => 'referer', 'type' => 'varchar(255)', 'description' => 'Реферер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'browser'=>array ( 'name' => 'browser', 'type' => 'varchar(255)', 'description' => 'Браузер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_EMAILLOG extends MikronBaseObject
                    {
                        private static $description = 'Лог шедуллер';
                        private static $fields = Array('email'=>array ( 'name' => 'email', 'type' => 'varchar(64)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'datesend'=>array ( 'name' => 'datesend', 'type' => 'datetime', 'description' => 'Дата отчета', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class USER_PREFERENCES extends MikronBaseObject
                    {
                        private static $description = 'Настройки пользователей';
                        private static $fields = Array('tablerows'=>array ( 'name' => 'tablerows', 'type' => 'int', 'description' => 'Количество строк в таблицах админки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_USER extends MikronBaseObject
                    {
                        private static $description = 'Пользователь';
                        private static $fields = Array('login'=>array ( 'name' => 'login', 'type' => 'varchar(64)', 'description' => 'Логин', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'userunq', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'password'=>array ( 'name' => 'password', 'type' => 'password(64)', 'description' => 'Пароль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'password', 'dbtype' => 'varchar(64)',),
      'contacts'=>array ( 'name' => 'contacts', 'type' => 'varchar(250)', 'description' => 'Контакты', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'session'=>array ( 'name' => 'session', 'type' => 'int', 'description' => 'Сессия', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'email'=>array ( 'name' => 'email', 'type' => 'varchar(48)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'email', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(48)',),
      'roles'=>array ( 'name' => 'roles', 'type' => 'T_USERS_ROLES', 'description' => 'Роли', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'user', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'preferences'=>array ( 'name' => 'preferences', 'type' => 'USER_PREFERENCES', 'description' => 'Настройки', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'lastvisittime'=>array ( 'name' => 'lastvisittime', 'type' => 'datetime', 'description' => 'Последний визит', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'activated'=>array ( 'name' => 'activated', 'type' => 'boolean', 'description' => 'Активирован', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата регистрации', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'picture'=>array ( 'name' => 'picture', 'type' => 'picture', 'description' => 'Аватарка', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'file', 'dbtype' => 'varchar(250)',),
      'usergroup'=>array ( 'name' => 'usergroup', 'type' => 'USER_GROUPS', 'description' => 'Группа', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'referal'=>array ( 'name' => 'referal', 'type' => 'T_USER', 'description' => 'Реферал', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '3', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'amount'=>array ( 'name' => 'amount', 'type' => 'int', 'description' => 'Кошелек', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'refamount'=>array ( 'name' => 'refamount', 'type' => 'int', 'description' => 'Начислено с рефералов', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'bronze'=>array ( 'name' => 'bronze', 'type' => 'int', 'description' => 'Бронза', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'silver'=>array ( 'name' => 'silver', 'type' => 'int', 'description' => 'Серебро', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'gold'=>array ( 'name' => 'gold', 'type' => 'int', 'description' => 'Золото', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'platinum'=>array ( 'name' => 'platinum', 'type' => 'int', 'description' => 'Платина', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'winamount'=>array ( 'name' => 'winamount', 'type' => 'int', 'description' => 'Сумма выигрышей', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'wins'=>array ( 'name' => 'wins', 'type' => 'T_WIN', 'description' => 'Выигрыши', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'cabinet', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'playlogs'=>array ( 'name' => 'playlogs', 'type' => 'PLAYLOG', 'description' => 'Игры', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'user', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'operations'=>array ( 'name' => 'operations', 'type' => 'T_OPERATIONS_LOG', 'description' => 'Журнал операций', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'cabinet', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'lockexport'=>array ( 'name' => 'lockexport', 'type' => 'boolean', 'description' => 'Запрет вывода', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'lockmarket'=>array ( 'name' => 'lockmarket', 'type' => 'boolean', 'description' => 'Запрет магазина', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_ROLE extends MikronBaseObject
                    {
                        private static $description = 'Роль';
                        private static $fields = Array('name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_MODULE extends MikronBaseObject
                    {
                        private static $description = 'Модуль';
                        private static $fields = Array('code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'description'=>array ( 'name' => 'description', 'type' => 'varchar(128)', 'description' => 'Описание', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'installed'=>array ( 'name' => 'installed', 'type' => 'boolean', 'description' => 'Установлен', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'operations'=>array ( 'name' => 'operations', 'type' => 'T_OPERATION', 'description' => 'Операции', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'module', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'path'=>array ( 'name' => 'path', 'type' => 'varchar(128)', 'description' => 'Путь к файлу модуля', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_OPERATION extends MikronBaseObject
                    {
                        private static $description = 'Операция';
                        private static $fields = Array('name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'module'=>array ( 'name' => 'module', 'type' => 'T_MODULE', 'description' => 'Модуль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_USERS_ROLES extends MikronBaseObject
                    {
                        private static $description = 'Связь пользователя и роли';
                        private static $fields = Array('role'=>array ( 'name' => 'role', 'type' => 'T_ROLE', 'description' => 'Роль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'user_role', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'user_role', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'expired'=>array ( 'name' => 'expired', 'type' => 'datetime', 'description' => 'Действует до', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_ROLES_OPERATIONS extends MikronBaseObject
                    {
                        private static $description = 'Связь роли и операции';
                        private static $fields = Array('operation'=>array ( 'name' => 'operation', 'type' => 'T_OPERATION', 'description' => 'Операция', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'role'=>array ( 'name' => 'role', 'type' => 'T_ROLE', 'description' => 'Роль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class SPONSOR_PROGRAM extends MikronBaseObject
                    {
                        private static $description = 'Реклама';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(128)', 'description' => 'Заголовок', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'required: true, message: \'Не заполнено поле «Заголовок»\'', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'theme'=>array ( 'name' => 'theme', 'type' => 'ADS_THEME', 'description' => 'Тематика', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '5', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'text'=>array ( 'name' => 'text', 'type' => 'text', 'description' => 'Текст', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'required: true, maxlength: 128', 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'link'=>array ( 'name' => 'link', 'type' => 'varchar(128)', 'description' => 'Адрес сайта', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'regexp: \'^http[s]?:\\/\\/.*$\'', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'picture'=>array ( 'name' => 'picture', 'type' => 'picture', 'description' => 'Рисунок', 'help' => 'Рисунок должен быть размером 100х100 пикселей', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'file', 'dbtype' => 'varchar(250)',),
      'startdate'=>array ( 'name' => 'startdate', 'type' => 'datetime', 'description' => 'Дата начала показа', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'budget'=>array ( 'name' => 'budget', 'type' => 'int', 'description' => 'Бюджет', 'help' => 'В копейках из расчета 10 копеек за клик', 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'numeric: true, minvalue: 1', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'state'=>array ( 'name' => 'state', 'type' => 'MODERATE_STATE', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'views'=>array ( 'name' => 'views', 'type' => 'int', 'description' => 'Просмотров', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'clicks'=>array ( 'name' => 'clicks', 'type' => 'int', 'description' => 'Кликов', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'chargeout'=>array ( 'name' => 'chargeout', 'type' => 'int', 'description' => 'Расход', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MARKET_ITEM extends MikronBaseObject
                    {
                        private static $description = 'Товар';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(64)', 'description' => 'Наименование', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => '1', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'shortname'=>array ( 'name' => 'shortname', 'type' => 'varchar(64)', 'description' => 'Краткое наименование', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => '1', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => '1', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'amount'=>array ( 'name' => 'amount', 'type' => 'int', 'description' => 'Стоимость', 'help' => 'В копейках', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'picture'=>array ( 'name' => 'picture', 'type' => 'picture', 'description' => 'Изображение', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'file', 'dbtype' => 'varchar(250)',),
      'forsmssale'=>array ( 'name' => 'forsmssale', 'type' => 'boolean', 'description' => 'Для SMS-продажи', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'forsale'=>array ( 'name' => 'forsale', 'type' => 'boolean', 'description' => 'Для продажи', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'bonus'=>array ( 'name' => 'bonus', 'type' => 'varchar(255)', 'description' => 'Бонус', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(255)',),
      'description'=>array ( 'name' => 'description', 'type' => 'text', 'description' => 'Описание', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_ORDER extends MikronBaseObject
                    {
                        private static $description = 'Заказ';
                        private static $fields = Array('cabinet'=>array ( 'name' => 'cabinet', 'type' => 'T_USER', 'description' => 'Кабинет', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'marketitem'=>array ( 'name' => 'marketitem', 'type' => 'MARKET_ITEM', 'description' => 'Товар', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'quantity'=>array ( 'name' => 'quantity', 'type' => 'int', 'description' => 'Количество', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'wmid'=>array ( 'name' => 'wmid', 'type' => 'varchar(16)', 'description' => 'WMID', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(16)',),
      'yandexmoneyid'=>array ( 'name' => 'yandexmoneyid', 'type' => 'varchar(16)', 'description' => 'Yandex-кошелек', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(16)',),
      'amount'=>array ( 'name' => 'amount', 'type' => 'int', 'description' => 'Сумма', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'status'=>array ( 'name' => 'status', 'type' => 'EX_STATUS', 'description' => 'Статус', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'paymentmethod'=>array ( 'name' => 'paymentmethod', 'type' => 'PAYMENT_METHODS', 'description' => 'Способ оплаты', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MARKET extends MikronBaseObject
                    {
                        private static $description = 'Магазин';
                        private static $fields = Array('item'=>array ( 'name' => 'item', 'type' => 'MARKET_ITEM', 'description' => 'Товар', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'state'=>array ( 'name' => 'state', 'type' => 'MARKET_ITEM_STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MANUAL_TRANSFER extends MikronBaseObject
                    {
                        private static $description = 'Ручное зачисление';
                        private static $fields = Array('cabinet'=>array ( 'name' => 'cabinet', 'type' => 'T_USER', 'description' => 'Аккаунт', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'moneytype'=>array ( 'name' => 'moneytype', 'type' => 'MARKET_ITEM', 'description' => 'Предмет зачисления', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'quantity'=>array ( 'name' => 'quantity', 'type' => 'int', 'description' => 'Количество/сумма', 'help' => 'В рублях или штуках', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'operated'=>array ( 'name' => 'operated', 'type' => 'boolean', 'description' => 'Зачислен', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'description'=>array ( 'name' => 'description', 'type' => 'varchar(100)', 'description' => 'Комментарий', 'help' => 'максимум 100 символов', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(100)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_PHONEOPERATOR extends MikronBaseObject
                    {
                        private static $description = 'Оператор GSM';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(128)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => '1', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'description'=>array ( 'name' => 'description', 'type' => 'text', 'description' => 'Информация', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class SMS_BILLING_UNIT extends MikronBaseObject
                    {
                        private static $description = 'СМС купон';
                        private static $fields = Array('item'=>array ( 'name' => 'item', 'type' => 'MARKET_ITEM', 'description' => 'Товар', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'phoneoperator'=>array ( 'name' => 'phoneoperator', 'type' => 'T_PHONEOPERATOR', 'description' => 'Оператор', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'smsnumber'=>array ( 'name' => 'smsnumber', 'type' => 'varchar(16)', 'description' => 'Номер телефона', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(16)',),
      'smscode'=>array ( 'name' => 'smscode', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'price'=>array ( 'name' => 'price', 'type' => 'int', 'description' => 'Цена', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TABCONTROL extends MikronBaseObject
                    {
                        private static $description = 'Панель с вкладками';
                        private static $fields = Array('code'=>array ( 'name' => 'code', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(32)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'tabs'=>array ( 'name' => 'tabs', 'type' => 'TAB_ITEM', 'description' => 'Вкладки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'tabcontrol', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'description'=>array ( 'name' => 'description', 'type' => 'varchar(200)', 'description' => 'Комментарий', 'help' => 'максимум 200 символов', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(200)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'style_active'=>array ( 'name' => 'style_active', 'type' => 'varchar(32)', 'description' => 'Класс активной вкладки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'style_inactive'=>array ( 'name' => 'style_inactive', 'type' => 'varchar(32)', 'description' => 'Класс неактивной вкладки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TAB_ITEM extends MikronBaseObject
                    {
                        private static $description = 'Вкладка для панели';
                        private static $fields = Array('tabcontrol'=>array ( 'name' => 'tabcontrol', 'type' => 'TABCONTROL', 'description' => 'Панель', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'name'=>array ( 'name' => 'name', 'type' => 'varchar(32)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'disabled'=>array ( 'name' => 'disabled', 'type' => 'boolean', 'description' => 'Выключен', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'link'=>array ( 'name' => 'link', 'type' => 'varchar(64)', 'description' => 'Ссылка', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'content'=>array ( 'name' => 'content', 'type' => 'text', 'description' => 'Содержимое вкладки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'description'=>array ( 'name' => 'description', 'type' => 'varchar(100)', 'description' => 'Комментарий', 'help' => 'максимум 100 символов', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(100)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_MESSAGE extends MikronBaseObject
                    {
                        private static $description = 'Сообщение';
                        private static $fields = Array('contacts'=>array ( 'name' => 'contacts', 'type' => 'varchar(64)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'answerto'=>array ( 'name' => 'answerto', 'type' => 'T_MESSAGE', 'description' => 'Ответ на письмо', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'message'=>array ( 'name' => 'message', 'type' => 'text', 'description' => 'Сообщение', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'answer'=>array ( 'name' => 'answer', 'type' => 'text', 'description' => 'Ответ', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Отправитель', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'recipient'=>array ( 'name' => 'recipient', 'type' => 'T_USER', 'description' => 'Кому', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class VOTING extends MikronBaseObject
                    {
                        private static $description = 'Голосование';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'code', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'choicetype'=>array ( 'name' => 'choicetype', 'type' => 'VOTING_CHOICE_TYPE', 'description' => 'Тип выбора ответов', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'question'=>array ( 'name' => 'question', 'type' => 'text', 'description' => 'Вопрос', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'choices'=>array ( 'name' => 'choices', 'type' => 'VOTING_CHOICE', 'description' => 'Пункты', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'voting', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class VOTING_CHOICE extends MikronBaseObject
                    {
                        private static $description = 'Пункт голосования';
                        private static $fields = Array('voting'=>array ( 'name' => 'voting', 'type' => 'VOTING', 'description' => 'Голосование', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'answer'=>array ( 'name' => 'answer', 'type' => 'varchar(128)', 'description' => 'Ответ', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'custom'=>array ( 'name' => 'custom', 'type' => 'boolean', 'description' => 'Предложить свой вариант', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class VOTING_RESULT extends MikronBaseObject
                    {
                        private static $description = 'Результат голосования';
                        private static $fields = Array('voting'=>array ( 'name' => 'voting', 'type' => 'VOTING', 'description' => 'Голосование', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'choice'=>array ( 'name' => 'choice', 'type' => 'VOTING_CHOICE', 'description' => 'Пункт', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'custom'=>array ( 'name' => 'custom', 'type' => 'varchar(128)', 'description' => 'Свой вариант ответа', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'phpsession'=>array ( 'name' => 'phpsession', 'type' => 'varchar(64)', 'description' => 'PHP-сессия', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'php:session()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class VOTING_NEW extends MikronBaseObject
                    {
                        private static $description = 'Форма быстрого создания голосования';
                        private static $fields = Array('code'=>array ( 'name' => 'code', 'type' => 'varchar(32)', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'question'=>array ( 'name' => 'question', 'type' => 'varchar(128)', 'description' => 'Вопрос', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'choicetype'=>array ( 'name' => 'choicetype', 'type' => 'VOTING_CHOICE_TYPE', 'description' => 'Тип выбора ответов', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'choices'=>array ( 'name' => 'choices', 'type' => 'text', 'description' => 'Варианты ответов', 'help' => 'Каждая строчка будет выведена в виде отдельного варианта ответа. Знак вопроса в конце варианта будет означать запрос ввода произвольного текста анкетирующемуся.', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_REGINFO extends MikronBaseObject
                    {
                        private static $description = 'Регистрационная форма';
                        private static $fields = Array('login'=>array ( 'name' => 'login', 'type' => 'varchar(64)', 'description' => 'Логин', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 2, char: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'password'=>array ( 'name' => 'password', 'type' => 'password(64)', 'description' => 'Пароль', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 6, char: true', 'group' => NULL, 'editmode' => 'password', 'dbtype' => 'varchar(64)',),
      'email'=>array ( 'name' => 'email', 'type' => 'varchar(250)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'email: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'lastname'=>array ( 'name' => 'lastname', 'type' => 'varchar(250)', 'description' => 'Фамилия', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 2, char: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'firstname'=>array ( 'name' => 'firstname', 'type' => 'varchar(250)', 'description' => 'Имя', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 2, char: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'fathername'=>array ( 'name' => 'fathername', 'type' => 'varchar(250)', 'description' => 'Отчество', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 2, char: true', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(250)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата регистрации', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class TASK extends MikronBaseObject
                    {
                        private static $description = 'Задача';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(128)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'author'=>array ( 'name' => 'author', 'type' => 'T_USER', 'description' => 'Автор', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'text'=>array ( 'name' => 'text', 'type' => 'text', 'description' => 'Описание', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'state'=>array ( 'name' => 'state', 'type' => 'TASK_STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MIKRON_COMMENT extends MikronBaseObject
                    {
                        private static $description = 'Комментарий';
                        private static $fields = Array('entity'=>array ( 'name' => 'entity', 'type' => 'varchar(64)', 'description' => 'Сущность', 'help' => NULL, 'allownull' => false, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'entityid'=>array ( 'name' => 'entityid', 'type' => 'int', 'description' => 'ID-сущности', 'help' => NULL, 'allownull' => false, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'comment'=>array ( 'name' => 'comment', 'type' => 'text', 'description' => 'Текст', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength:2', 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'moderated'=>array ( 'name' => 'moderated', 'type' => 'boolean', 'description' => 'Промодерирован', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'author'=>array ( 'name' => 'author', 'type' => 'T_USER', 'description' => 'Автор', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MIKRON_FAVOURITE extends MikronBaseObject
                    {
                        private static $description = 'Элемент из избранного';
                        private static $fields = Array('entity'=>array ( 'name' => 'entity', 'type' => 'varchar(64)', 'description' => 'Сущность', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'unqidx', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'entityid'=>array ( 'name' => 'entityid', 'type' => 'int', 'description' => 'Идентификатор сущности', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'unqidx', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'comments'=>array ( 'name' => 'comments', 'type' => 'text', 'description' => 'Комментарии', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Владелец', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'unqidx', 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MIKRON_UPRATE extends MikronBaseObject
                    {
                        private static $description = 'Модификатор рейтинга';
                        private static $fields = Array('entity'=>array ( 'name' => 'entity', 'type' => 'varchar(64)', 'description' => 'Сущность', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'entityid'=>array ( 'name' => 'entityid', 'type' => 'int', 'description' => 'ID-сущности', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'comment'=>array ( 'name' => 'comment', 'type' => 'text', 'description' => 'Текст', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'moderated'=>array ( 'name' => 'moderated', 'type' => 'boolean', 'description' => 'Промодерирован', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'author'=>array ( 'name' => 'author', 'type' => 'T_USER', 'description' => 'Автор', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class PLAYLOG extends MikronBaseObject
                    {
                        private static $description = 'Лог-игр';
                        private static $fields = Array('game'=>array ( 'name' => 'game', 'type' => 'GAME', 'description' => 'Игра', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Игрок', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'amount'=>array ( 'name' => 'amount', 'type' => 'int', 'description' => 'Сумма', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'ip'=>array ( 'name' => 'ip', 'type' => 'varchar(16)', 'description' => 'IP-адрес', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(16)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время игры', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class SETTINGSFORM extends MikronBaseObject
                    {
                        private static $description = 'Кастомная форма';
                        private static $fields = Array('bronze'=>array ( 'name' => 'bronze', 'type' => 'int', 'description' => 'Бронзовых шансов', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '3', 'childattribute' => NULL, 'validator' => NULL, 'group' => 'Кладоискатель', 'editmode' => 'string', 'dbtype' => 'int',),
      'silver'=>array ( 'name' => 'silver', 'type' => 'int', 'description' => 'Серебрянных', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '3', 'childattribute' => NULL, 'validator' => NULL, 'group' => 'Кладоискатель', 'editmode' => 'string', 'dbtype' => 'int',),
      'gold'=>array ( 'name' => 'gold', 'type' => 'int', 'description' => 'Золотых', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '3', 'childattribute' => NULL, 'validator' => NULL, 'group' => 'Кладоискатель', 'editmode' => 'string', 'dbtype' => 'int',),
      'platinum'=>array ( 'name' => 'platinum', 'type' => 'int', 'description' => 'Платиновых', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '3', 'childattribute' => NULL, 'validator' => NULL, 'group' => 'Кладоискатель', 'editmode' => 'string', 'dbtype' => 'int',),
      'freegamebronze'=>array ( 'name' => 'freegamebronze', 'type' => 'int', 'description' => 'Бронзовых шансов на выигрыш', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => 'Бесплатная игра', 'editmode' => 'string', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_OPERATIONS_LOG extends MikronBaseObject
                    {
                        private static $description = 'Лог баланса кабинетов';
                        private static $fields = Array('cabinet'=>array ( 'name' => 'cabinet', 'type' => 'T_USER', 'description' => 'Кабинет', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'amount'=>array ( 'name' => 'amount', 'type' => 'int', 'description' => 'Баланс', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'bronze'=>array ( 'name' => 'bronze', 'type' => 'int', 'description' => 'Бронза', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'silver'=>array ( 'name' => 'silver', 'type' => 'int', 'description' => 'Серебро', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'gold'=>array ( 'name' => 'gold', 'type' => 'int', 'description' => 'Золото', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'platinum'=>array ( 'name' => 'platinum', 'type' => 'int', 'description' => 'Платина', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'source'=>array ( 'name' => 'source', 'type' => 'OPERATION_SOURCE', 'description' => 'Источник операции', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'ecp'=>array ( 'name' => 'ecp', 'type' => 'varchar(32)', 'description' => 'Подпись', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'partner'=>array ( 'name' => 'partner', 'type' => 'T_USER', 'description' => 'Реферал', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Дата добавления записи', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_NEWS extends MikronBaseObject
                    {
                        private static $description = 'Новость';
                        private static $fields = Array('anons'=>array ( 'name' => 'anons', 'type' => 'varchar(128)', 'description' => 'Заголовок', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => true, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'text'=>array ( 'name' => 'text', 'type' => 'html', 'description' => 'Новость', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => true, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'state'=>array ( 'name' => 'state', 'type' => 'STATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'startdate'=>array ( 'name' => 'startdate', 'type' => 'datetime', 'description' => 'Дата активации', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_WIN extends MikronBaseObject
                    {
                        private static $description = 'Выигрыш';
                        private static $fields = Array('cabinet'=>array ( 'name' => 'cabinet', 'type' => 'T_USER', 'description' => 'Кабинет', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'game'=>array ( 'name' => 'game', 'type' => 'GAME', 'description' => 'Игра', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'winkey'=>array ( 'name' => 'winkey', 'type' => 'varchar(40)', 'description' => 'Код выигрыша', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(40)',),
      'amount'=>array ( 'name' => 'amount', 'type' => 'int', 'description' => 'Сумма выигрыша', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'state'=>array ( 'name' => 'state', 'type' => 'WINSTATES', 'description' => 'Состояние', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_EX_RECORD extends MikronBaseObject
                    {
                        private static $description = 'Заявка на вывод';
                        private static $fields = Array('amount'=>array ( 'name' => 'amount', 'type' => 'int', 'description' => 'Сумма', 'help' => 'В копейках', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'cabinet'=>array ( 'name' => 'cabinet', 'type' => 'T_USER', 'description' => 'Из кабинета', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'packet'=>array ( 'name' => 'packet', 'type' => 'EXPORT_PACKET', 'description' => 'Пакет', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'extodevice'=>array ( 'name' => 'extodevice', 'type' => 'EX_DEVICE', 'description' => 'Куда выводить', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'provider'=>array ( 'name' => 'provider', 'type' => 'T_PROVIDER', 'description' => 'Провайдер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'extonumber'=>array ( 'name' => 'extonumber', 'type' => 'varchar(24)', 'description' => 'Номер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(24)',),
      'status'=>array ( 'name' => 'status', 'type' => 'EX_STATUS', 'description' => 'Статус обработки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'operationlog'=>array ( 'name' => 'operationlog', 'type' => 'T_OPERATIONS_LOG', 'description' => 'Трансакция', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_PROVIDER extends MikronBaseObject
                    {
                        private static $description = 'Провайдер';
                        private static $fields = Array('code'=>array ( 'name' => 'code', 'type' => 'int', 'description' => 'Код', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'title'=>array ( 'name' => 'title', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class EXPORT_PACKET extends MikronBaseObject
                    {
                        private static $description = 'Пакет оплачиваемых выводов средств';
                        private static $fields = Array('records'=>array ( 'name' => 'records', 'type' => 'T_EX_RECORD', 'description' => 'Элементы', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => 'packet', 'validator' => NULL, 'group' => NULL, 'editmode' => 'childattribute', 'dbtype' => NULL,),
      'file'=>array ( 'name' => 'file', 'type' => 'file', 'description' => 'Файл', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'file', 'dbtype' => 'varchar(250)',),
      'operated'=>array ( 'name' => 'operated', 'type' => 'boolean', 'description' => 'Оплочен', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_EMAILBOX extends MikronBaseObject
                    {
                        private static $description = 'Электронный ящик';
                        private static $fields = Array('email'=>array ( 'name' => 'email', 'type' => 'varchar(64)', 'description' => 'E-mail', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'server'=>array ( 'name' => 'server', 'type' => 'varchar(48)', 'description' => 'Сервер', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(48)',),
      'port'=>array ( 'name' => 'port', 'type' => 'int', 'description' => 'Порт', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '110', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'login'=>array ( 'name' => 'login', 'type' => 'varchar(32)', 'description' => 'Логин', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'password'=>array ( 'name' => 'password', 'type' => 'varchar(32)', 'description' => 'Пароль', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class T_MAIL extends MikronBaseObject
                    {
                        private static $description = 'Письмо';
                        private static $fields = Array('body'=>array ( 'name' => 'body', 'type' => 'text', 'description' => 'Тело письма', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'state'=>array ( 'name' => 'state', 'type' => 'MAIL_STATES', 'description' => 'Состояние обработки', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'wmid'=>array ( 'name' => 'wmid', 'type' => 'varchar(24)', 'description' => 'WMID', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(24)',),
      'amounterror'=>array ( 'name' => 'amounterror', 'type' => 'boolean', 'description' => 'Ошибка суммы', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'phonenumber'=>array ( 'name' => 'phonenumber', 'type' => 'varchar(128)', 'description' => 'Номер телефона', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'cabinet'=>array ( 'name' => 'cabinet', 'type' => 'T_USER', 'description' => 'Кабинет', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'subject'=>array ( 'name' => 'subject', 'type' => 'varchar(128)', 'description' => 'Тема письма', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'amount'=>array ( 'name' => 'amount', 'type' => 'int', 'description' => 'Сумма', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'orderlink'=>array ( 'name' => 'orderlink', 'type' => 'T_ORDER', 'description' => 'Заказ', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'mailbox'=>array ( 'name' => 'mailbox', 'type' => 'T_EMAILBOX', 'description' => 'Источник', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'operationdate'=>array ( 'name' => 'operationdate', 'type' => 'datetime', 'description' => 'Дата и время оплаты', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время добавления', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class GAME extends MikronBaseObject
                    {
                        private static $description = 'Игра';
                        private static $fields = Array('name'=>array ( 'name' => 'name', 'type' => 'varchar(64)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'code'=>array ( 'name' => 'code', 'type' => 'varchar(64)', 'description' => 'Код', 'help' => 'Используется в качестве части URL адреса к игре', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'locked'=>array ( 'name' => 'locked', 'type' => 'boolean', 'description' => 'Закрыта', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'hidden'=>array ( 'name' => 'hidden', 'type' => 'boolean', 'description' => 'Скрытая', 'help' => 'Скрыть из списка игр', 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'picture'=>array ( 'name' => 'picture', 'type' => 'picture', 'description' => 'Картинка', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'file', 'dbtype' => 'varchar(250)',),
      'description'=>array ( 'name' => 'description', 'type' => 'text', 'description' => 'Описание', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'rules'=>array ( 'name' => 'rules', 'type' => 'text', 'description' => 'Правила', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'content'=>array ( 'name' => 'content', 'type' => 'text', 'description' => 'Содержимое', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'ads'=>array ( 'name' => 'ads', 'type' => 'text', 'description' => 'Рекламодатель', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'needsum'=>array ( 'name' => 'needsum', 'type' => 'int', 'description' => 'Требуемая сумма', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'prize'=>array ( 'name' => 'prize', 'type' => 'int', 'description' => 'Выигрыш', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'toreferal'=>array ( 'name' => 'toreferal', 'type' => 'int', 'description' => 'Рефералу', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'rate'=>array ( 'name' => 'rate', 'type' => 'int', 'description' => 'Ставка', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'ratepremium'=>array ( 'name' => 'ratepremium', 'type' => 'int', 'description' => 'Ставка от премиум-аккаунта', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'plays'=>array ( 'name' => 'plays', 'type' => 'int', 'description' => 'Кол-во игр', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'churkasaloed'=>array ( 'name' => 'churkasaloed', 'type' => 'int', 'description' => 'Кол-во игр не резидентами РФ', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'churkasaloedlimit'=>array ( 'name' => 'churkasaloedlimit', 'type' => 'int', 'description' => 'Кол-во игнорируемых игр для не резидентов РФ', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'bank'=>array ( 'name' => 'bank', 'type' => 'int', 'description' => 'Банк', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class CITY extends MikronBaseObject
                    {
                        private static $description = 'Город';
                        private static $fields = Array('name'=>array ( 'name' => 'name', 'type' => 'varchar(32)', 'description' => 'Название', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => 'city', 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class FREE_GAME_PLAYER extends MikronBaseObject
                    {
                        private static $description = 'Игрок бесплатной игры';
                        private static $fields = Array('ip'=>array ( 'name' => 'ip', 'type' => 'varchar(16)', 'description' => 'IP-адрес', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(16)',),
      'city'=>array ( 'name' => 'city', 'type' => 'CITY', 'description' => 'Город', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'stage'=>array ( 'name' => 'stage', 'type' => 'int', 'description' => 'Этап', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'finish'=>array ( 'name' => 'finish', 'type' => 'boolean', 'description' => 'Завершено', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'boolean', 'dbtype' => 'tinyint',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class FREE_GAME_PAGE extends MikronBaseObject
                    {
                        private static $description = 'Страницы бесплатной игры';
                        private static $fields = Array('title'=>array ( 'name' => 'title', 'type' => 'varchar(32)', 'description' => 'Заголовок', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(32)',),
      'content'=>array ( 'name' => 'content', 'type' => 'text', 'description' => 'Содержимое', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class MINISTAT extends MikronBaseObject
                    {
                        private static $description = 'Сводная статистика';
                        private static $fields = Array('statdate'=>array ( 'name' => 'statdate', 'type' => 'datetime', 'description' => 'Дата статистики', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',),
      'newusers'=>array ( 'name' => 'newusers', 'type' => 'int', 'description' => 'Регистраций', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game1'=>array ( 'name' => 'game1', 'type' => 'int', 'description' => 'Рублик', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game2'=>array ( 'name' => 'game2', 'type' => 'int', 'description' => 'Пятерка', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game3'=>array ( 'name' => 'game3', 'type' => 'int', 'description' => 'Червонец', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game4'=>array ( 'name' => 'game4', 'type' => 'int', 'description' => 'Полтинник', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game5'=>array ( 'name' => 'game5', 'type' => 'int', 'description' => 'Стольник', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game6'=>array ( 'name' => 'game6', 'type' => 'int', 'description' => 'Пятихатка', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game7'=>array ( 'name' => 'game7', 'type' => 'int', 'description' => 'Штука', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game1_amount'=>array ( 'name' => 'game1_amount', 'type' => 'int', 'description' => 'Рублик (затраты)', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game2_amount'=>array ( 'name' => 'game2_amount', 'type' => 'int', 'description' => 'Пятерка (затраты)', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game3_amount'=>array ( 'name' => 'game3_amount', 'type' => 'int', 'description' => 'Червонец (затраты)', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game4_amount'=>array ( 'name' => 'game4_amount', 'type' => 'int', 'description' => 'Полтинник (затраты)', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game5_amount'=>array ( 'name' => 'game5_amount', 'type' => 'int', 'description' => 'Стольник (затраты)', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game6_amount'=>array ( 'name' => 'game6_amount', 'type' => 'int', 'description' => 'Пятихатка (затраты)', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'game7_amount'=>array ( 'name' => 'game7_amount', 'type' => 'int', 'description' => 'Штука (затраты)', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'games_count'=>array ( 'name' => 'games_count', 'type' => 'int', 'description' => 'Всего игр', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'games_summa'=>array ( 'name' => 'games_summa', 'type' => 'int', 'description' => 'Затраты по играм', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'zerogames'=>array ( 'name' => 'zerogames', 'type' => 'int', 'description' => 'Пустых игр', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class SECURITY_MESSAGES extends MikronBaseObject
                    {
                        private static $description = 'События безопасности';
                        private static $fields = Array('source'=>array ( 'name' => 'source', 'type' => 'varchar(64)', 'description' => 'Источник', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(64)',),
      'message'=>array ( 'name' => 'message', 'type' => 'text', 'description' => 'Сообщение', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'economy'=>array ( 'name' => 'economy', 'type' => 'int', 'description' => 'Экономия', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => '0', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class PARTNER_PROGRAM extends MikronBaseObject
                    {
                        private static $description = 'Партнерская программа';
                        private static $fields = Array('link'=>array ( 'name' => 'link', 'type' => 'varchar(128)', 'description' => 'Ссылка', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'regexp: \'^http[s]?:\\/\\/.*$\', required: true, message: \'Ссылка должна начинаться на http\'', 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'varchar(128)',),
      'description'=>array ( 'name' => 'description', 'type' => 'text', 'description' => 'Описание', 'help' => NULL, 'allownull' => false, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => 'minlength: 10, required: true, message: \'Некорректное описание. Описание должно быть не короче 10 символов.\'', 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'moderated'=>array ( 'name' => 'moderated', 'type' => 'MODERATE_STATE', 'description' => 'Промодерирован', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => '1', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'select', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время создания', 'help' => NULL, 'allownull' => true, 'hidden' => true, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class PARTNER_PROGRAM_VIEW extends MikronBaseObject
                    {
                        private static $description = 'Логи просмотра рекламы';
                        private static $fields = Array('program'=>array ( 'name' => 'program', 'type' => 'SPONSOR_PROGRAM', 'description' => 'Реклама', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'user'=>array ( 'name' => 'user', 'type' => 'T_USER', 'description' => 'Пользователь', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'mikron:user()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время просмотра', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?><?php
                    class GAME_ADV extends MikronBaseObject
                    {
                        private static $description = 'Игровая реклама';
                        private static $fields = Array('game'=>array ( 'name' => 'game', 'type' => 'GAME', 'description' => 'Игра', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'parent', 'dbtype' => 'int',),
      'ads'=>array ( 'name' => 'ads', 'type' => 'text', 'description' => 'Реклама', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => NULL, 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'text', 'dbtype' => 'longtext',),
      'dt'=>array ( 'name' => 'dt', 'type' => 'datetime', 'description' => 'Время просмотра', 'help' => NULL, 'allownull' => true, 'hidden' => false, 'forsearch' => false, 'unique' => NULL, 'default' => 'now()', 'childattribute' => NULL, 'validator' => NULL, 'group' => NULL, 'editmode' => 'string', 'dbtype' => 'datetime',));
                        public function fields()
                        {
                            return self::$fields;
                        }
                        public function description()
                        {
                            return self::$description;
                        }
                        public function __construct($mysql_row = null)
                        {
                            parent::__construct($mysql_row, __CLASS__, self::$fields);
                        }
                        public function __get($var)
                        {
                            if($var=='fields'){return self::$fields;}else{return parent::__get($var);}
                        }
                    }
                ?>